package main

import (
	"encoding/json"
	"fmt"
	"go-auto_carate_yapi_json/src/service"
	"go-auto_carate_yapi_json/src/snowflake"
	"os"
)

func main() {
	if err := snowflake.Init("2021-12-03", 1); err != nil {
		fmt.Println("Init() failed, err = ", err)
		return
	}

	edges := &service.EmployeeInsuredPromptResponse{
		NoChangeEmployee: []*service.NoChangeEmployee{
			{
				Name: "123",
			},
		},
	}
	var rse service.CreateResponse
	// 如果结构体有数组需要给数组初始化一个值，不然会报错
	newList := NewList("POST", "/test0/aaa", "/test0/aaa", edges, &rse)

	lists := make(Lists, 0)
	lists = append(lists, newList)

	//lists = append(lists, NewList("POST", "/psiorder/v1/order/pay-callback", "", "", ""), NewList("POST", "/psiorder/v1/order-pay", "", "", ""), NewList("POST", "/psiorder/v1/order-query", "", "", ""), NewList("POST", "/psiorder/v1/order", "", "", ""), NewList("GET", "/psiorder/v1/order/:id", "", "", ""), NewList("GET", "/psiorder/v1/order", "", "", ""), NewList("PUT", "/psiorder/v1/order/:id", "", "", ""), NewList("DELETE", "/psiorder/v1/order/:id", "", "", ""), NewList("POST", "/psiorder/v1/order-canceled", "", "", ""), NewList("POST", "/psiorder/v1/order-cancel/:id", "", "", ""), NewList("POST", "/psiorder/v1/order-comment", "", "", ""), NewList("PUT", "/psiorder/v1/order-attachment/:id", "", "", ""), NewList("POST", "/psiorder/v1/order-calc", "", "", ""), NewList("POST", "/psiorder/v1/order-deadline", "", "", ""), NewList("GET", "/psiorder/v1/order-brief/:id", "", "", ""), NewList("POST", "/psiorder/v1/order-refund", "", "", ""), NewList("POST", "/psiorder/v1/order-urge", "", "", ""), NewList("GET", "/psiorder/v1/order-do-export", "", "", ""), NewList("GET", "/psiorder/v1/refund-order", "", "", ""), NewList("GET", "/psiorder/v1/refund-order/:id", "", "", ""), NewList("GET", "/psiorder/v1/refund-order-statistics", "", "", ""), NewList("POST", "/psiorder/v1/refund-order-confirm/:id", "", "", ""), NewList("POST", "/psiorder/v1/insured-person", "", "", ""), NewList("PUT", "/psiorder/v1/insured-person/:id", "", "", ""), NewList("GET", "/psiorder/v1/insured-person/:id", "", "", ""), NewList("GET", "/psiorder/v1/insured-person", "", "", ""), NewList("DELETE", "/psiorder/v1/insured-person/:id", "", "", ""), NewList("PUT", "/psiorder/v1/insured-person-back/:id", "", "", ""), NewList("POST", "/psiorder/v1/datum-needed", "", "", ""), NewList("GET", "/psiorder/v1/conflict-check", "", "", ""), NewList("POST", "/psiorder/v1/conflict-check/:id/op/return", "", "", ""), NewList("GET", "/psiorder/v1/conflict-check-statistics", "", "", ""), NewList("GET", "/psiorder/v1/conflict-check/:id/info", "", "", ""), NewList("PUT", "/psiorder/v1/conflict-check/:id/op/handle", "", "", ""), NewList("GET", "/psiorder/v1/datum-check", "", "", ""), NewList("GET", "/psiorder/v1/datum-check/:id", "", "", ""), NewList("POST", "/psiorder/v1/datum-check", "", "", ""), NewList("POST", "/psiorder/v1/datum-check/warning", "", "", ""), NewList("GET", "/psiorder/v1/si-service-statistics", "", "", ""), NewList("GET", "/psiorder/v1/si-order-statistics", "", "", ""), NewList("GET", "/psiorder/v1/si-process-statistics", "", "", ""), NewList("GET", "/psiorder/v1/datum-statistics", "", "", ""), NewList("POST", "/psiorder/v1/front-process", "", "", ""), NewList("GET", "/psiorder/v1/front-process", "", "", ""), NewList("POST", "/psiorder/v1/front-process/op/apply", "", "", ""), NewList("GET", "/psiorder/v1/front-process/:id", "", "", ""), NewList("GET", "/psiorder/v1/front-process-statistics", "", "", ""), NewList("POST", "/psiorder/v1/front-process/op/refund", "", "", ""), NewList("POST", "/psiorder/v1/front-process/op/increase-andrs)", "", "", ""), NewList("POST", "/psiorder/v1/front-process/op/payback", "", "", ""), NewList("POST", "/psiorder/v1/front-process/op/cancel", "", "", ""), NewList("POST", "/psiorder/v1/front-process/op/cancel_inc", "", "", ""), NewList("POST", "/psiorder/v1/front-process/op/del_ret", "", "", ""), NewList("PUT", "/psiorder/v1/front-process/:id", "", "", ""), NewList("GET", "/psiorder/v1/front-delete/record", "", "", ""), NewList("POST", "/psiorder/v1/front-real/re-apply", "", "", ""), NewList("GET", "/psiorder/v1/policy/:id/checkout-available", "", "", ""), NewList("GET", "/psiorder/v1/check-bill/front-process/:id", "", "", ""), NewList("POST", "/psiorder/v1/front-process/pre-abnormal-ha", "", "", ""), NewList("POST", "/psiorder/v1/front-process/update-feedback", "", "", ""), NewList("POST", "/psiorder/v1/front-process/op/batch-apply", "", "", ""), NewList("GET", "/psiorder/v1/insurance/person-records", "", "", ""), NewList("POST", "/psiorder/v1/back-process/:id/op/feedback", "", "", ""), NewList("GET", "/psiorder/v1/back-process-detail/:id", "", "", ""), NewList("GET", "/psiorder/v1/back-renew-detail/:id", "", "", ""), NewList("GET", "/psiorder/v1/back-process/account/:id", "", "", ""), NewList("GET", "/psiorder/v1/back-process/account/:id/othe", "", "", ""), NewList("GET", "/psiorder/v1/back-process/account/:id/stat", "", "", ""), NewList("GET", "/psiorder/v1/back-process-statistics", "", "", ""), NewList("GET", "/psiorder/v1/back-total-statistics", "", "", ""), NewList("GET", "/psiorder/v1/back-process/account/:id/expo", "", "", ""), NewList("POST", "/psiorder/v1/back-process-download", "", "", ""), NewList("POST", "/psiorder/v1/back-process-batch-download", "", "", ""), NewList("POST", "/psiorder/v1/back-process-import", "", "", ""), NewList("PUT", "/psiorder/v1/back-process/:id", "", "", ""), NewList("POST", "/psiorder/v1/back-process-return", "", "", ""), NewList("PUT", "/psiorder/v1/back-process-statistics", "", "", ""), NewList("GET", "/psiorder/v1/back-process-reminder/update-", "", "", ""), NewList("POST", "/psiorder/v1/back-process-reminder/confirm", "", "", ""), NewList("GET", "/psiorder/v1/ent-insured-persons/:id", "", "", ""), NewList("GET", "/psiorder/v1/ent-insured-persons/:id/abnor", "", "", ""), NewList("PUT", "/psiorder/v1/ent-insured-persons/:id", "", "", ""), NewList("PUT", "/psiorder/v1/ent-insured-persons/:id/confi", "", "", ""), NewList("GET", "/psiorder/v1/ent-insured-persons", "", "", ""), NewList("PUT", "/psiorder/v1/ent-insured-persons/:id/op/de", "", "", ""), NewList("DELETE", "/psiorder/v1/ent-insured-persons/:id", "", "", ""), NewList("PUT", "/psiorder/v1/ent-insured-persons/:id/op/ha", "", "", ""), NewList("POST", "/psiorder/v1/ent-insured-persons/op/import", "", "", ""), NewList("POST", "/psiorder/v1/ent-insured-persons/op/import", "", "", ""), NewList("POST", "/psiorder/v1/ent-insured-persons/op/batch-", "", "", ""), NewList("POST", "/psiorder/v1/ent-insured-persons/abnormal-", "", "", ""), NewList("GET", "/psiorder/v1/ent-process-statistics", "", "", ""), NewList("GET", "/psiorder/v1/ent-customer-statistics", "", "", ""), NewList("GET", "/psiorder/v1/ent-datum-statistics", "", "", ""), NewList("GET", "/psiorder/v1/ent-form-statistics", "", "", ""), NewList("POST", "/psiorder/v1/form/op/confirm-increase", "", "", ""), NewList("POST", "/psiorder/v1/form/op/confirm-decrease", "", "", ""), NewList("POST", "/psiorder/v1/do-import-template", "", "", ""), NewList("POST", "/psiorder/v1/form-template", "", "", ""), NewList("GET", "/psiorder/v1/form-templates", "", "", ""), NewList("POST", "/psiorder/v1/form-templates/op/delete", "", "", ""), NewList("POST", "/psiorder/v1/form/do-import", "", "", ""), NewList("POST", "/psiorder/v1/form/pre-import", "", "", ""), NewList("GET", "/psiorder/v1/form/:id", "", "", ""), NewList("GET", "/psiorder/v1/form", "", "", ""), NewList("DELETE", "/psiorder/v1/form", "", "", ""), NewList("POST", "/psiorder/v1/form-submit", "", "", ""), NewList("PUT", "/psiorder/v1/payback-range/:id", "", "", ""), NewList("GET", "/psiorder/v1/form/:id/base-range", "", "", ""), NewList("GET", "/psiorder/v1/form-abnormal/export", "", "", ""), NewList("GET", "/psiorder/v1/form/:id/abnormal/infos", "", "", ""), NewList("PUT", "/psiorder/v1/form/:id/abnormal/deal-origin", "", "", ""), NewList("PUT", "/psiorder/v1/form/:id/abnormal/deal-decrea", "", "", ""), NewList("PUT", "/psiorder/v1/form/:id/abnormal/deal-decrea", "", "", ""), NewList("GET", "/psiorder/v1/pre-bill-detail/:id", "", "", ""), NewList("GET", "/psiorder/v1/pre-bill-detail", "", "", ""), NewList("GET", "/psiorder/v1/pre-bill-renew/export", "", "", ""), NewList("PUT", "/psiorder/v1/pre-bill-detail/:id", "", "", ""), NewList("DELETE", "/psiorder/v1/pre-bill-detail/:id", "", "", ""), NewList("POST", "/psiorder/v1/pre-bill-detail/op/batch-dele", "", "", ""), NewList("GET", "/psiorder/v1/pre-bill/:id/op/detail", "", "", ""), NewList("GET", "/psiorder/v1/pre-bill", "", "", ""), NewList("POST", "/psiorder/v1/pre-bill-export", "", "", ""), NewList("POST", "/psiorder/v1/pre-bill-handle-return", "", "", ""), NewList("POST", "/psiorder/v1/pre-bill-policy-accounts", "", "", ""), NewList("GET", "/psiorder/v1/pre-bill-export/all", "", "", ""), NewList("GET", "/psiorder/v1/export-task", "", "", ""), NewList("GET", "/psiorder/v1/pre-detail/:contract_id/:id_nlers)", "", "", ""), NewList("POST", "/psiorder/v1/pre-detail/update-billing-mon", "", "", ""), NewList("POST", "/psiorder/v1/do-import-real-template", "", "", ""), NewList("POST", "/psiorder/v1/real-template", "", "", ""), NewList("GET", "/psiorder/v1/real-templates", "", "", ""), NewList("POST", "/psiorder/v1/real-templates/op/delete", "", "", ""), NewList("POST", "/psiorder/v1/get-real-mapping", "", "", ""), NewList("POST", "/psiorder/v1/real/do-import", "", "", ""), NewList("GET", "/psiorder/v1/accounts", "", "", ""), NewList("GET", "/psiorder/v1/real", "", "", ""), NewList("GET", "/psiorder/v1/real-detail", "", "", ""), NewList("GET", "/psiorder/v1/real-detail/download-data", "", "", ""), NewList("GET", "/psiorder/v1/real-estatistics-inner-settle", "", "", ""), NewList("POST", "/psiorder/v1/real-confirm", "", "", ""), NewList("POST", "/psiorder/v1/real-delete", "", "", ""), NewList("GET", "/psiorder/v1/real-delete-records", "", "", ""), NewList("GET", "/psiorder/v1/invalid-real", "", "", ""), NewList("PUT", "/psiorder/v1/real-handle-invalid/:id", "", "", ""), NewList("POST", "/psiorder/v1/invalid-real/batch-delete", "", "", ""), NewList("POST", "/psiorder/v1/invalid-real/batch-handle", "", "", ""), NewList("POST", "/psiorder/v1/back-op-admin", "", "", ""), NewList("GET", "/psiorder/v1/back-op-admin", "", "", ""), NewList("GET", "/psiorder/v1/back-op-admin/:id", "", "", ""), NewList("DELETE", "/psiorder/v1/back-op-admin/:id", "", "", ""), NewList("GET", "/psiorder/v1/back-account-customer", "", "", ""), NewList("GET", "/psiorder/v1/front-reals", "", "", ""), NewList("GET", "/psiorder/v1/front-real-details", "", "", ""), NewList("GET", "/psiorder/v1/front-real/settlement", "", "", ""), NewList("GET", "/psiorder/v1/real/:id", "", "", ""), NewList("PUT", "/psiorder/v1/real-pay", "", "", ""), NewList("POST", "/psiorder/v1/real-print", "", "", ""), NewList("GET", "/psiorder/v1/diffs", "", "", ""), NewList("POST", "/psiorder/v1/diff-gen/:id", "", "", ""), NewList("GET", "/psiorder/v1/diff-record/:id", "", "", ""), NewList("POST", "/psiorder/v1/handle-person-diff/:id", "", "", ""), NewList("GET", "/psiorder/v1/diff/:id", "", "", ""), NewList("POST", "/psiorder/v1/real-export/:id", "", "", ""), NewList("GET", "/psiorder/v1/check-diff/:id", "", "", ""), NewList("GET", "/psiorder/v1/person-diff/:id/export", "", "", ""), NewList("GET", "/psiorder/v1/handle-log/:id", "", "", ""), NewList("POST", "/psiorder/v1/payback-refund/op/import", "", "", ""), NewList("GET", "/psiorder/v1/payback-refund", "", "", ""), NewList("GET", "/psiorder/v1/payback-refund/:id", "", "", ""), NewList("DELETE", "/psiorder/v1/payback-refund/:id", "", "", ""), NewList("DELETE", "/psiorder/v1/refund-diff-record/:id", "", "", ""), NewList("POST", "/psiorder/v1/system-refund", "", "", ""), NewList("GET", "/psiorder/v1/diff-handle-statistics", "", "", ""), NewList("GET", "/psiorder/v1/customer-handle-diffs", "", "", ""), NewList("POST", "/psiorder/v1/customer-diff-export", "", "", ""), NewList("POST", "/psiorder/v1/customer-diff-confirm/:id", "", "", ""), NewList("GET", "/psiorder/v1/person-handle-diffs", "", "", ""), NewList("POST", "/psiorder/v1/person-diff-export", "", "", ""), NewList("POST", "/psiorder/v1/person-diff-confirm/:id", "", "", ""), NewList("POST", "/psiorder/v1/historical/import-template", "", "", ""), NewList("POST", "/psiorder/v1/historical/create-template", "", "", ""), NewList("GET", "/psiorder/v1/historical/list-templates", "", "", ""), NewList("DELETE", "/psiorder/v1/historical/del-template/:id", "", "", ""), NewList("POST", "/psiorder/v1/historical/do-import", "", "", ""), NewList("POST", "/psiorder/v1/historical/get-mapping", "", "", ""), NewList("POST", "/psiorder/v1/datum-import", "", "", ""), NewList("GET", "/psiorder/v1/invalid-datums", "", "", ""), NewList("GET", "/psiorder/v1/datum-dup-people", "", "", ""), NewList("GET", "/psiorder/v1/online-datums", "", "", ""), NewList("POST", "/psiorder/v1/datum-dup-people", "", "", ""), NewList("POST", "/psiorder/v1/datum-select-names", "", "", ""), NewList("DELETE", "/psiorder/v1/invalid-datum/:id", "", "", ""), NewList("GET", "/psiorder/v1/statistics", "", "", ""), NewList("PUT", "/psiorder/v1/change-info/:id", "", "", ""), NewList("GET", "/psiorder/v1/change-infos", "", "", ""), NewList("POST", "/psiorder/v1/change-info", "", "", ""), NewList("POST", "/psiorder/v1/change-infos/export", "", "", ""), NewList("GET", "/psiorder/v1/form/:id/abnormal/update-base", "", "", ""), NewList("PUT", "/psiorder/v1/form/:id/abnormal/deal-update-base", "", "", ""), NewList("GET", "/psiorder/v1/update-base/insurance/:id", "", "", ""), NewList("PUT", "/psiorder/v1/update-base", "", "", ""), NewList("GET", "/psiorder/v1/import-jobs", "", "", ""), NewList("GET", "/psiorder/v1/import-jobs/:id/records", "", "", ""), NewList("POST", "/psiorder/v1/back_process/ext/do-import", "", "", ""), NewList("PUT", "/psiorder/v1/back_process/ext-deletes", "", "", ""), NewList("POST", "/psiorder/v1/back_process/ext/re-do-import", "", "", ""), NewList("GET", "/psiorder/v1/back-process/ext-export-result/account/:id", "", "", ""), NewList("GET", "/psiorder/v1/policy-config", "", "", ""), NewList("GET", "/psiorder/v1/policy-config/:id/area", "", "", ""), NewList("POST", "/psiorder/v1/policy-config/:id/area", "", "", ""), NewList("PUT", "/psiorder/v1/policy-config-area/:id", "", "", ""), NewList("DELETE", "/psiorder/v1/policy-config-area/:id", "", "", ""), NewList("GET", "/psiorder/v1/order-statistics", "", "", ""), NewList("GET", "/psiorder/v1/order-statistics-remark/:id", "", "", ""), NewList("POST", "/psiorder/v1/order-statistics-remark", "", "", ""), NewList("GET", "/psiorder/v1/order-setting/:id", "", "", ""), NewList("PUT", "/psiorder/v1/order-setting/:id", "", "", ""), NewList("POST", "/psiorder/v1/employee-insured-prompt", "", "", ""), NewList("POST", "/psiorder/v1/employee-insured-sihf-month", "", "", ""), NewList("GET", "/psiorder/v1/front-real/preson-insurances", "", "", ""), NewList("GET", "/psiorder/v1/front_real/preson-insurances_data_path", "", "", ""), NewList("POST", "/psiorder/v1/real-stats", "", "", ""), NewList("POST", "/psiorder/v1/batch/back-process/feedback", "", "", ""), NewList("GET", "/psiorder/v1/renew/need-generate", "", "", ""), NewList("POST", "/psiorder/v1/renew/generate", "", "", ""), NewList("GET", "/psiorder/v1/policy_update_abnormal/warning", "", "", ""), NewList("PUT", "/psiorder/v1/policy_update_abnormal/warning", "", "", ""), NewList("GET", "/psiorder/v1/front-real/stats/person-count", "", "", ""), NewList("GET", "/psiorder/v1/front-real/stats/amount", "", "", ""), NewList("GET", "/psiorder/v1/front-reals-export", "", "", ""), NewList("GET", "/psiorder/v1/front-process/:id/pre-next-month-op", "", "", ""), NewList("POST", "/psiorder/v1/front-process/next-month-op", "", "", ""), NewList("GET", "/psiorder/v1/back-process/legal_entities", "", "", ""), NewList("GET", "/psiorder/v1/back-process/exports", "", "", ""), NewList("GET", "/psiorder/v1/back-process/customers", "", "", ""), NewList("GET", "/psiorder/v1/process-statistics", "", "", ""), NewList("GET", "/psiorder/v1/increase/abnormal", "", "", ""), NewList("GET", "/psiorder/v1/increase/abnormal/download", "", "", ""), NewList("POST", "/psiorder/v1/increase/abnormal/delete", "", "", ""), NewList("POST", "/psiorder/v1/batch-feedback-all", "", "", ""), NewList("POST", "/psiorder/v1/front-process/op/batch/cancel_inc", "", "", ""), NewList("POST", "/psiorder/v1/batch/back-process/return", "", "", ""), NewList("POST", "/psiorder/v1/front-process/op/decrease", "", "", ""), NewList("POST", "/psiorder/v1/insured-stat", "", "", ""), NewList("GET", "/psiorder/v1/insured-area/contract/:id", "", "", ""), NewList("POST", "/psiorder/v1/diffs/op/handle-type", "", "", ""), NewList("POST", "/psiorder/v1/diffs/op/batch/handle-person-diff", "", "", ""), NewList("GET", "/psiorder/v1/service-product", "", "", ""), NewList("POST", "/psiorder/v1/batch/back-process/handle", "", "", ""), NewList("GET", "/psiorder/v1/front-export", "", "", ""), NewList("POST", "/psiorder/v1/hr-send-order", "", "", ""), NewList("POST", "/psiorder/v1/hr-insured-decrease", "", "", ""), NewList("POST", "/psiorder/v1/hr-insured-payback", "", "", ""), NewList("POST", "/psiorder/v1/hr-insured-update", "", "", ""), NewList("PUT", "/psiorder/v1/hr-send-order/:id", "", "", ""), NewList("PUT", "/psiorder/v1/hr-insured-decrease/:id", "", "", ""), NewList("PUT", "/psiorder/v1/hr-insured-payback/:id", "", "", ""), NewList("PUT", "/psiorder/v1/hr-insured-update/:id", "", "", ""), NewList("GET", "/psiorder/v1/hr-send-order", "", "", ""), NewList("GET", "/psiorder/v1/hr-send-order/:id", "", "", ""), NewList("POST", "/psiorder/v1/op/delete-order", "", "", ""), NewList("GET", "/psiorder/v1/hr-insured", "", "", ""), NewList("GET", "/psiorder/v1/hr-insured/:id", "", "", ""), NewList("POST", "/psiorder/v1/hr-import", "", "", ""), NewList("GET", "/psiorder/v1/hro-receive-order", "", "", ""), NewList("POST", "/psiorder/v1/hro-receive-confirm", "", "", ""), NewList("POST", "/psiorder/v1/hro-receive-refuse", "", "", ""), NewList("GET", "/psiorder/v1/order-status-statistics", "", "", ""), NewList("GET", "/psiorder/v1/op-type-details", "", "", ""), NewList("GET", "/psiorder/v1/insured-people-count", "", "", ""), NewList("POST", "/psiorder/v1/tag/recruitment-and-retirement", "", "", ""), NewList("GET", "/debug/pprof/", "", "", ""), NewList("GET", "/debug/pprof/heap", "", "", ""), NewList("GET", "/debug/pprof/goroutine", "", "", ""), NewList("GET", "/debug/pprof/block", "", "", ""), NewList("GET", "/debug/pprof/threadcreate", "", "", ""), NewList("GET", "/debug/pprof/cmdline", "", "", ""), NewList("GET", "/debug/pprof/profile", "", "", ""), NewList("GET", "/debug/pprof/symbol", "", "", ""), NewList("POST", "/debug/pprof/symbol", "", "", ""), NewList("GET", "/debug/pprof/trace", "", "", ""), NewList("GET", "/debug/pprof/mutex", "", "", ""))

	body := NewBody("王森测试导入API-参数测试", "", lists)

	v, _ := json.Marshal(body)
	fmt.Println("marsha result: ", string(v))

	dstFile, err := os.Create("temp.json")
	if err != nil {
		fmt.Println(err.Error())
		return
	}
	dstFile.WriteString("[" + string(v) + "\n" + "]")

}
